package com.edais.service.gift;

import com.edais.domain.User;
import com.edais.domain.gift.GiftPackageGift;
import com.edais.domain.gift.GiftPackageGiftOrder;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 礼包礼品订单Service
 * Created by haoyx on 2016/11/15.
 */
public interface GiftPackageGiftOrderService {

    void insertOrder(GiftPackageGiftOrder order);

    void updateOrderStatus(String logInfo, GiftPackageGiftOrder order, Date nowDate);

    GiftPackageGiftOrder selectByPrimaryKey(Long id);

    GiftPackageGiftOrder selectGiftPackageGiftOrder(Map<String,Object> params);

    GiftPackageGiftOrder generateOrder(String logInfo, Long packageOrderId, User user, GiftPackageGift gift, Date nowDate);

    List<GiftPackageGiftOrder> selectGiftPackageGiftOrderList(Map<String,Object> params);

    int countGiftPackageGiftOrders(Map<String, Object> params);
}
